/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.infrastructure.plugin.captcha;

import cn.hallele.infrastructure.util.bean.Captcha;
import lombok.Getter;

/**
 * hallele_mc_core
 *
 * @author anle5
 * @since 2024/9/15 13:19
 */
@Getter
public class PortalCaptcha extends Captcha {
    /**
     * 验证码有效期,单位 s
     */
    private final long ttl;

    /**
     * 构造
     *
     * @param width          图片宽
     * @param height         图片高
     * @param codeCount      字符个数
     * @param interfereCount 验证码干扰元素个数
     */
    public PortalCaptcha(int width, int height, int codeCount, int interfereCount, long ttl) {
        super(width, height, codeCount, interfereCount);
        this.ttl = ttl;
    }
}
